<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perlfaq2 - Obtaining and Learning about Perl - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perlfaq2">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlfaq2.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perlfaq2">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perlfaq2">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perlfaq2">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perlfaq2">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perlfaq2">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perlfaq2">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perlfaq2">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perlfaq2">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perlfaq2">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perlfaq2">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perlfaq2">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perlfaq2">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perlfaq2">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perlfaq2">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perlfaq2">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perlfaq2">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perlfaq2">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perlfaq2">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perlfaq2">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perlfaq2">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perlfaq2">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perlfaq2">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perlfaq2">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perlfaq2">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perlfaq2">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perlfaq2">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perlfaq2">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perlfaq2">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perlfaq2">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perlfaq2">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perlfaq2">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perlfaq2">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perlfaq2">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perlfaq2">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perlfaq2">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perlfaq2">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perlfaq2">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perlfaq2">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perlfaq2">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perlfaq2">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perlfaq2">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perlfaq2">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perlfaq2">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perlfaq2">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perlfaq2">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perlfaq2">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perlfaq2">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perlfaq2">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perlfaq2">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perlfaq2">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perlfaq2">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perlfaq2">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perlfaq2">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perlfaq2">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perlfaq2">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perlfaq2">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perlfaq2">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perlfaq2">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perlfaq2">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perlfaq2">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perlfaq2">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perlfaq2">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perlfaq2">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perlfaq2">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perlfaq2">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perlfaq2">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perlfaq2">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perlfaq2">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perlfaq2">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perlfaq2">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perlfaq2">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perlfaq2">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perlfaq2">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perlfaq2">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perlfaq2">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perlfaq2">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perlfaq2">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perlfaq2">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perlfaq2">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perlfaq2">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlfaq2.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perlfaq2">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perlfaq2">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perlfaq2">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perlfaq2">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perlfaq2">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perlfaq2">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perlfaq2">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perlfaq2">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perlfaq2">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perlfaq2">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perlfaq2">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perlfaq2">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perlfaq2">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perlfaq2">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perlfaq2">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perlfaq2">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perlfaq2">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perlfaq2">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perlfaq2">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perlfaq2">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perlfaq2">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perlfaq2">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perlfaq2">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perlfaq2">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perlfaq2">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perlfaq2">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perlfaq2">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perlfaq2">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perlfaq2">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perlfaq2">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perlfaq2">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perlfaq2">5.35.1</a>
          <a class="dropdown-item active" href="perlfaq2.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlfaq2.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perlfaq2.html">perlfaq2</a>
          <div id="more">
            (<a href="perlfaq2.txt">source</a>,
            <a href="https://metacpan.org/pod/perlfaq2">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#VERSION">VERSION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#DESCRIPTION">DESCRIPTION</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#What-machines-support-Perl?-Where-do-I-get-it?">What machines support Perl? Where do I get it?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#How-can-I-get-a-binary-version-of-Perl?">How can I get a binary version of Perl?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#I-don&#39;t-have-a-C-compiler.-How-can-I-build-my-own-Perl-interpreter?">I don&#39;t have a C compiler. How can I build my own Perl interpreter?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#I-copied-the-Perl-binary-from-one-machine-to-another,-but-scripts-don&#39;t-work.">I copied the Perl binary from one machine to another, but scripts don&#39;t work.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#I-grabbed-the-sources-and-tried-to-compile-but-gdbm/dynamic-loading/malloc/linking/...-failed.-How-do-I-make-it-work?">I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#What-modules-and-extensions-are-available-for-Perl?-What-is-CPAN?">What modules and extensions are available for Perl? What is CPAN?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#Where-can-I-get-information-on-Perl?">Where can I get information on Perl?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#What-is-perl.com?-Perl-Mongers?-pm.org?-perl.org?-cpan.org?">What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#Where-can-I-post-questions?">Where can I post questions?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#Perl-Books">Perl Books</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#Which-magazines-have-Perl-content?">Which magazines have Perl content?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#Which-Perl-blogs-should-I-read?">Which Perl blogs should I read?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#What-mailing-lists-are-there-for-Perl?">What mailing lists are there for Perl?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#Where-can-I-buy-a-commercial-version-of-Perl?">Where can I buy a commercial version of Perl?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#Where-do-I-send-bug-reports?">Where do I send bug reports?</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlfaq2.html#AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perlfaq2.html#NAME">#</a>NAME</h1>

<p>perlfaq2 - Obtaining and Learning about Perl</p>

<h1 id="VERSION"><a class="permalink" href="perlfaq2.html#VERSION">#</a>VERSION</h1>

<p>version 5.20210411</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perlfaq2.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This section of the FAQ answers questions about where to find source and documentation for Perl, support, and related matters.</p>

<h2 id="What-machines-support-Perl?-Where-do-I-get-it?"><a class="permalink" href="perlfaq2.html#What-machines-support-Perl?-Where-do-I-get-it?">#</a><a id="What"></a><a id="What-machines-support-Perl-Where-do-I-get-it"></a>What machines support Perl? Where do I get it?</h2>

<p>The standard release of Perl (the one maintained by the Perl development team) is distributed only in source code form. You can find the latest releases at <a href="http://www.cpan.org/src/">http://www.cpan.org/src/</a>.</p>

<p>Perl builds and runs on a bewildering number of platforms. Virtually all known and current Unix derivatives are supported (perl&#39;s native platform), as are other systems like VMS, DOS, OS/2, Windows, QNX, BeOS, OS X, MPE/iX and the Amiga.</p>

<p>Binary distributions for some proprietary platforms can be found <a href="http://www.cpan.org/ports/">http://www.cpan.org/ports/</a> directory. Because these are not part of the standard distribution, they may and in fact do differ from the base perl port in a variety of ways. You&#39;ll have to check their respective release notes to see just what the differences are. These differences can be either positive (e.g. extensions for the features of the particular platform that are not supported in the source release of perl) or negative (e.g. might be based upon a less current source release of perl).</p>

<h2 id="How-can-I-get-a-binary-version-of-Perl?"><a class="permalink" href="perlfaq2.html#How-can-I-get-a-binary-version-of-Perl?">#</a><a id="How"></a><a id="How-can-I-get-a-binary-version-of-Perl"></a>How can I get a binary version of Perl?</h2>

<p>See <a href="http://www.cpan.org/ports/">CPAN Ports</a></p>

<h2 id="I-don&#39;t-have-a-C-compiler.-How-can-I-build-my-own-Perl-interpreter?"><a class="permalink" href="perlfaq2.html#I-don&#39;t-have-a-C-compiler.-How-can-I-build-my-own-Perl-interpreter?">#</a><a id="I"></a><a id="I-dont-have-a-C-compiler.-How-can-I-build-my-own-Perl-interpreter"></a>I don&#39;t have a C compiler. How can I build my own Perl interpreter?</h2>

<p>For Windows, use a binary version of Perl, <a href="http://strawberryperl.com/">Strawberry Perl</a> and <a href="http://www.activestate.com/activeperl">ActivePerl</a> come with a bundled C compiler.</p>

<p>Otherwise if you really do want to build Perl, you need to get a binary version of <code>gcc</code> for your system first. Use a search engine to find out how to do this for your operating system.</p>

<h2 id="I-copied-the-Perl-binary-from-one-machine-to-another,-but-scripts-don&#39;t-work."><a class="permalink" href="perlfaq2.html#I-copied-the-Perl-binary-from-one-machine-to-another,-but-scripts-don&#39;t-work.">#</a><a id="I1"></a><a id="I-copied-the-Perl-binary-from-one-machine-to-another-but-scripts-dont-work"></a>I copied the Perl binary from one machine to another, but scripts don&#39;t work.</h2>

<p>That&#39;s probably because you forgot libraries, or library paths differ. You really should build the whole distribution on the machine it will eventually live on, and then type <code>make install</code>. Most other approaches are doomed to failure.</p>

<p>One simple way to check that things are in the right place is to print out the hard-coded <code>@INC</code> that perl looks through for libraries:</p>

<pre><code>% perl -le &#39;print for @INC&#39;</code></pre>

<p>If this command lists any paths that don&#39;t exist on your system, then you may need to move the appropriate libraries to these locations, or create symbolic links, aliases, or shortcuts appropriately. <code>@INC</code> is also printed as part of the output of</p>

<pre><code class="plaintext">% perl -V</code></pre>

<p>You might also want to check out <a href="perlfaq8.html#How-do-I-keep-my-own-module%2Flibrary-directory%3F">&quot;How do I keep my own module/library directory?&quot; in perlfaq8</a>.</p>

<h2 id="I-grabbed-the-sources-and-tried-to-compile-but-gdbm/dynamic-loading/malloc/linking/...-failed.-How-do-I-make-it-work?"><a class="permalink" href="perlfaq2.html#I-grabbed-the-sources-and-tried-to-compile-but-gdbm/dynamic-loading/malloc/linking/...-failed.-How-do-I-make-it-work?">#</a><a id="I2"></a><a id="I-grabbed-the-sources-and-tried-to-compile-but-gdbm-dynamic-loading-malloc-linking-...-failed.-How-do-I-make-it-work"></a>I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?</h2>

<p>Read the <i>INSTALL</i> file, which is part of the source distribution. It describes in detail how to cope with most idiosyncrasies that the <code>Configure</code> script can&#39;t work around for any given system or architecture.</p>

<h2 id="What-modules-and-extensions-are-available-for-Perl?-What-is-CPAN?"><a class="permalink" href="perlfaq2.html#What-modules-and-extensions-are-available-for-Perl?-What-is-CPAN?">#</a><a id="What1"></a><a id="What-modules-and-extensions-are-available-for-Perl-What-is-CPAN"></a>What modules and extensions are available for Perl? What is CPAN?</h2>

<p>CPAN stands for Comprehensive Perl Archive Network, a multi-gigabyte archive replicated on hundreds of machines all over the world. CPAN contains tens of thousands of modules and extensions, source code and documentation, designed for <i>everything</i> from commercial database interfaces to keyboard/screen control and running large web sites.</p>

<p>You can search CPAN on <a href="http://metacpan.org">http://metacpan.org</a>.</p>

<p>The master web site for CPAN is <a href="http://www.cpan.org/">http://www.cpan.org/</a>, <a href="http://www.cpan.org/SITES.html">http://www.cpan.org/SITES.html</a> lists all mirrors.</p>

<p>See the CPAN FAQ at <a href="http://www.cpan.org/misc/cpan-faq.html">http://www.cpan.org/misc/cpan-faq.html</a> for answers to the most frequently asked questions about CPAN.</p>

<p>The <a href="./Task::Kensho.html">Task::Kensho</a> module has a list of recommended modules which you should review as a good starting point.</p>

<h2 id="Where-can-I-get-information-on-Perl?"><a class="permalink" href="perlfaq2.html#Where-can-I-get-information-on-Perl?">#</a><a id="Where"></a><a id="Where-can-I-get-information-on-Perl"></a>Where can I get information on Perl?</h2>

<ul>

<li><p><a href="http://www.perl.org/">http://www.perl.org/</a></p>

</li>
<li><p><a href="http://perldoc.perl.org/">http://perldoc.perl.org/</a></p>

</li>
<li><p><a href="http://learn.perl.org/">http://learn.perl.org/</a></p>

</li>
</ul>

<p>The complete Perl documentation is available with the Perl distribution. If you have Perl installed locally, you probably have the documentation installed as well: type <code>perldoc perl</code> in a terminal or <a href="http://perldoc.perl.org/perl.html">view online</a>.</p>

<p>(Some operating system distributions may ship the documentation in a different package; for instance, on Debian, you need to install the <code>perl-doc</code> package.)</p>

<p>Many good books have been written about Perl--see the section later in <a href="perlfaq2.html">perlfaq2</a> for more details.</p>

<h2 id="What-is-perl.com?-Perl-Mongers?-pm.org?-perl.org?-cpan.org?"><a class="permalink" href="perlfaq2.html#What-is-perl.com?-Perl-Mongers?-pm.org?-perl.org?-cpan.org?">#</a><a id="What2"></a><a id="What-is-perl.com-Perl-Mongers-pm.org-perl.org-cpan.org"></a>What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?</h2>

<p><a href="http://www.perl.com/">Perl.com</a> used to be part of the O&#39;Reilly Network, a subsidiary of O&#39;Reilly Media. Although it retains most of the original content from its O&#39;Reilly Network, it is now hosted by <a href="http://www.perlfoundation.org/">The Perl Foundation</a>.</p>

<p>The Perl Foundation is an advocacy organization for the Perl language which maintains the web site <a href="http://www.perl.org/">http://www.perl.org/</a> as a general advocacy site for the Perl language. It uses the domain to provide general support services to the Perl community, including the hosting of mailing lists, web sites, and other services. There are also many other sub-domains for special topics like learning Perl and jobs in Perl, such as:</p>

<ul>

<li><p><a href="http://www.perl.org/">http://www.perl.org/</a></p>

</li>
<li><p><a href="http://learn.perl.org/">http://learn.perl.org/</a></p>

</li>
<li><p><a href="http://jobs.perl.org/">http://jobs.perl.org/</a></p>

</li>
<li><p><a href="http://lists.perl.org/">http://lists.perl.org/</a></p>

</li>
</ul>

<p><a href="http://www.pm.org/">Perl Mongers</a> uses the pm.org domain for services related to local Perl user groups, including the hosting of mailing lists and web sites. See the <a href="http://www.pm.org/">Perl Mongers web site</a> for more information about joining, starting, or requesting services for a Perl user group.</p>

<p>CPAN, or the Comprehensive Perl Archive Network <a href="http://www.cpan.org/">http://www.cpan.org/</a>, is a replicated, worldwide repository of Perl software. See <a href="perlfaq2.html#What-modules-and-extensions-are-available-for-Perl%3F-What-is-CPAN%3F">What is CPAN?</a>.</p>

<h2 id="Where-can-I-post-questions?"><a class="permalink" href="perlfaq2.html#Where-can-I-post-questions?">#</a><a id="Where1"></a><a id="Where-can-I-post-questions"></a>Where can I post questions?</h2>

<p>There are many Perl <a href="https://perldoc.perl.org/5.35.0/lists.perl.org">mailing lists</a> for various topics, specifically the <a href="http://lists.perl.org/list/beginners.html">beginners list</a> may be of use.</p>

<p>Other places to ask questions are on the <a href="http://www.perlmonks.org/">PerlMonks site</a> or <a href="http://stackoverflow.com/questions/tagged/perl">stackoverflow</a>.</p>

<h2 id="Perl-Books"><a class="permalink" href="perlfaq2.html#Perl-Books">#</a><a id="Perl"></a>Perl Books</h2>

<p>There are many good <a href="http://www.perl.org/books/library.html">books on Perl</a>.</p>

<h2 id="Which-magazines-have-Perl-content?"><a class="permalink" href="perlfaq2.html#Which-magazines-have-Perl-content?">#</a><a id="Which"></a><a id="Which-magazines-have-Perl-content"></a>Which magazines have Perl content?</h2>

<p>There&#39;s also <i>$foo Magazin</i>, a German magazine dedicated to Perl, at ( <a href="http://www.foo-magazin.de">http://www.foo-magazin.de</a> ). The <i>Perl-Zeitung</i> is another German-speaking magazine for Perl beginners (see <a href="http://perl-zeitung.at.tf">http://perl-zeitung.at.tf</a> ).</p>

<p>Several Unix/Linux related magazines frequently include articles on Perl.</p>

<h2 id="Which-Perl-blogs-should-I-read?"><a class="permalink" href="perlfaq2.html#Which-Perl-blogs-should-I-read?">#</a><a id="Which1"></a><a id="Which-Perl-blogs-should-I-read"></a>Which Perl blogs should I read?</h2>

<p><a href="http://perlnews.org/">Perl News</a> covers some of the major events in the Perl world, <a href="http://perlweekly.com/">Perl Weekly</a> is a weekly e-mail (and RSS feed) of hand-picked Perl articles.</p>

<p><a href="http://blogs.perl.org/">http://blogs.perl.org/</a> hosts many Perl blogs, there are also several blog aggregators: <a href="http://perlsphere.net/">Perlsphere</a> and <a href="http://ironman.enlightenedperl.org/">IronMan</a> are two of them.</p>

<h2 id="What-mailing-lists-are-there-for-Perl?"><a class="permalink" href="perlfaq2.html#What-mailing-lists-are-there-for-Perl?">#</a><a id="What3"></a><a id="What-mailing-lists-are-there-for-Perl"></a>What mailing lists are there for Perl?</h2>

<p>A comprehensive list of Perl-related mailing lists can be found at <a href="http://lists.perl.org/">http://lists.perl.org/</a></p>

<h2 id="Where-can-I-buy-a-commercial-version-of-Perl?"><a class="permalink" href="perlfaq2.html#Where-can-I-buy-a-commercial-version-of-Perl?">#</a><a id="Where2"></a><a id="Where-can-I-buy-a-commercial-version-of-Perl"></a>Where can I buy a commercial version of Perl?</h2>

<p>Perl already <i>is</i> commercial software: it has a license that you can grab and carefully read to your manager. It is distributed in releases and comes in well-defined packages. There is a very large and supportive user community and an extensive literature.</p>

<p>If you still need commercial support <a href="http://www.activestate.com/activeperl">ActiveState</a> offers this.</p>

<h2 id="Where-do-I-send-bug-reports?"><a class="permalink" href="perlfaq2.html#Where-do-I-send-bug-reports?">#</a><a id="Where3"></a><a id="Where-do-I-send-bug-reports"></a>Where do I send bug reports?</h2>

<p>(contributed by brian d foy)</p>

<p>First, ensure that you&#39;ve found an actual bug. Second, ensure you&#39;ve found an actual bug.</p>

<p>If you&#39;ve found a bug with the perl interpreter or one of the modules in the standard library (those that come with Perl), you can submit a bug report to the GitHub issue tracker at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p>

<p>To determine if a module came with your version of Perl, you can install and use the <a href="./Module::CoreList.html">Module::CoreList</a> module. It has the information about the modules (with their versions) included with each release of Perl.</p>

<p>Every CPAN module has a bug tracker set up in RT, <a href="http://rt.cpan.org">http://rt.cpan.org</a>. You can submit bugs to RT either through its web interface or by email. To email a bug report, send it to bug-&lt;distribution-name&gt;@rt.cpan.org . For example, if you wanted to report a bug in <a href="./Business::ISBN.html">Business::ISBN</a>, you could send a message to bug-Business-ISBN@rt.cpan.org .</p>

<p>Some modules might have special reporting requirements, such as a GitHub or Google Code tracking system, so you should check the module documentation too.</p>

<h1 id="AUTHOR-AND-COPYRIGHT"><a class="permalink" href="perlfaq2.html#AUTHOR-AND-COPYRIGHT">#</a><a id="AUTHOR"></a>AUTHOR AND COPYRIGHT</h1>

<p>Copyright (c) 1997-2010 Tom Christiansen, Nathan Torkington, and other authors as noted. All rights reserved.</p>

<p>This documentation is free; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
